package com.nuo.modules.poster.service.impl;

import com.nuo.modules.poster.dao.PosterDao;
import com.nuo.modules.poster.entity.PosterEntity;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nuo.common.utils.PageUtils;
import com.nuo.common.utils.Query;

import com.nuo.modules.poster.service.PosterService;


@Service("posterService")
public class PosterServiceImpl extends ServiceImpl<PosterDao, PosterEntity> implements PosterService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PosterEntity> page = this.page(
                new Query<PosterEntity>().getPage(params),
                new QueryWrapper<PosterEntity>()
        );

        return new PageUtils(page);
    }

}